package com.hsae.platform.upgrade

import android.content.DialogInterface
import android.content.DialogInterface.OnClickListener

/**
 * @author zhuyouyong <zhuyouyong@hangsheng.com.cn>
 * Created on 2020/11/13.
 */
class DlgClickWrapper(var listener: OnClickListener?) : OnClickListener {

    fun release() {
        listener = null
    }

    override fun onClick(dialog: DialogInterface?, which: Int) {
        listener?.onClick(dialog, which)
    }
}